<?php
	//$this->output->enable_profiler(TRUE);
	echo '<?xml version="1.0"?>';

	$is_logged = $this->auth->is_logged_in();	
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>HN Books Admin</title>
<meta name="description" content="Sponsored calls" />
<meta name="keywords" content="Sponsored calls" />
<?php echo  $this->assetlibpro->output('css'); ?>
<link rel="stylesheet" media="screen,projection" type="text/css" href="/layout/admin/css/reset.css" /> <!-- RESET -->
<link rel="stylesheet" media="screen,projection" type="text/css" href="/layout/admin/css/main.css" /> <!-- MAIN STYLE SHEET -->
<link rel="stylesheet" href="/layout/admin/css/jquery.treeview.css" />
<!--[if lte IE 6]><link rel="stylesheet" media="screen,projection" type="text/css" href="/layout/admin/css/main-ie6.css" /><![endif]--> <!-- MSIE6 -->
<link rel="stylesheet" media="screen,projection" type="text/css" href="/layout/admin/css/style.css" /> <!-- GRAPHIC THEME -->
<link rel="stylesheet" type="text/css" href="/css/common.css" />
<link rel="stylesheet" media="screen,projection" type="text/css" href="/layout/admin/css/datatables/demo_table_jui.css" />
<link rel="stylesheet" media="screen,projection" type="text/css" href="/css/smoothness/jquery-ui-1.8.4.custom.css" />

<?php //echo  $this->assetlibpro->output('js'); ?>
<script type="text/javascript" src="/js/jquery/jquery-1.4.4.min.js"></script>
<script type="text/javascript" src="/js/jquery/jquery.trackbar.js"></script>
<script src="/layout/admin/js/jquery.cookie.js" type="text/javascript"></script>
<script src="/js/dFilter.js" type="text/javascript"></script>
<script src="/layout/admin/js/jquery.treeview.js" type="text/javascript"></script>
<script type="text/javascript" src="/layout/admin/js/overall.js"></script>

<script type="text/javascript" src="/layout/admin/js/jquery.dataTables.min.js"></script>
<script type="text/javascript" src="/js/jquery/jquery-ui-1.8.2.custom.min.js"></script>
	
<link rel="stylesheet" media="screen,projection" type="text/css" href="/js/calendar/css/jscal2.css" />
<link rel="stylesheet" media="screen,projection" type="text/css" href="/js/calendar/css/border-radius.css" />
<script type="text/javascript" src="/js/calendar/js/jscal2.js"></script>
<script type="text/javascript" src="/js/calendar/js/lang/ru.js"></script>
<script type="text/javascript" src="/js/jquery/jquery.autocomplete.js"></script>

<link rel="stylesheet" media="screen,projection" type="text/css" href="/layout/admin/css/datatables/demo_table_jui.css" />
    <link rel="stylesheet" media="screen,projection" type="text/css" href="/css/smoothness/jquery-ui-1.8.4.custom.css" />

<?php if (!empty($wysiwyg)): ?>
<script type="text/javascript" src="/js/tinymce/jscripts/tiny_mce/tiny_mce.js"></script>
<script type="text/javascript" src="/layout/admin/js/tiny_mce_init.js"></script>
<?php endif; ?>

<?php if (!empty($chart)): ?>
<script>
	AC_FL_RunContent = 0;
	DetectFlashVer = 0; 
</script>
<script type="text/javascript" src="/js/charts/AC_RunActiveContent.js"></script>
<?php endif; ?>

<?php if (!empty($jplayer)): ?>
<link rel="stylesheet" media="screen,projection" type="text/css" href="/css/jplayer/skin/jplayer.blue.monday.css" />
<script type="text/javascript" src="/js/jquery/jquery.jplayer.min.js"></script>
<?php endif; ?>

<script type="text/javascript">
	$(document).ready(function(){
	 
	});
</script>
</head>

<body>

<div id="main">

	<!-- Tray -->
	<div id="tray" class="box">

		<div class="f-left box">
			
			<table cellpadding="0" cellspacing="0" class="nostyle nomargin logo_tbl">
			<tr>
				<td></td>
				<td><strong>HN Books Administration</strong></td>
			</tr>
			</table>

		</div>
		
		<?php $this->load->view('_elements/in-admin-top.inc.php', array('is_logged' => $is_logged)); ?>

	</div> <!--  /tray -->

	<!-- Menu -->
	<div id="menu" class="box">

		<ul class="box">		
			<li><span style="float: left; padding-right: 10px"><?php echo T_('Quick access:');?></span></li>
			<li <?php if ($this->curl == 'homepage') echo 'id="menu-active"'?>><a href="/admin/"><span><?php echo T_('Home');?></span></a></li>
			<li <?php if ($this->curl == 'blog') echo 'id="menu-active"'?>><a href="/admin/blog/posts"><span><?php echo T_('HN Blog');?></span></a></li>			
		</ul>

	</div> <!-- /header -->


	<!-- Columns -->
	<div id="cols" class="box">

		<!-- Aside (Left Column) -->
		<div id="aside" class="box">

			<div class="box">

                <!-- Logo (Max. width = 150px) -->              
                <p id="logo"><a href="/"><img src="/img/logo.png" width="174" height="99" alt="HN Find All. In books" title="HN Find All. In books" /></a></p>
								
			</div> <!-- /padding -->
			
			<?php $this->load->view('/homepage/_menu.php'); ?>	

			<?php if (isset($search_box)) echo $search_box; ?>
			
		</div> <!-- /aside -->

		<!-- Content (Right Column) -->
		<div id="content" class="box">

			<?php $this->log->showMessage(); ?>

			<?php if ($this->curl != 'homepage'): ?>
			<a class="back" href="javascript:void(0)" onclick="history.back(1);"><?php echo T_('Back'); ?></a>
			<?php endif; ?>
			
			<h1><?php echo $Title ?></h1>
			
			<?php $this->load->view($this->view); ?>

		</div> <!-- /content -->

	</div> <!-- /cols -->

	<hr class="noscreen" />

	<!-- Footer -->
	<?php $this->load->view('_elements/in-admin-footer.inc.php'); ?>
	<!-- /footer -->

</div> <!-- /main -->

</body>
</html>